
<%@ page import="stravel.City" %>
<!doctype html>
<html>
  <head>
    <meta name="layout" content="admin">
  <g:set var="entityName" value="${message(code: 'city.label', default: 'City')}" />
  <title><g:message code="default.list.label" args="[entityName]" /></title>
</head>
<body>

  <div class="header">

    <h1 class="page-title"><g:message code="default.list.label" args="[entityName]" /></h1>
    <ul class="breadcrumb">
      <li><a href="${createLink(uri: '/')}"><g:message code="default.home.label"/></a></li>
      <li class="active"><g:message code="default.list.label" args="[entityName]" /></li>
    </ul>

  </div>
  <div class="btn-toolbar list-toolbar">
    <g:link class="btn btn-primary" action="create">
      <i class="icon-plus"></i>
      <g:message code="default.create.label" args="[entityName]" />
    </g:link>

    <div class="btn-group">
    </div>
  </div>

<g:if test="${flash.message}">
  <bootstrap:alert class="alert-info">${flash.message}</bootstrap:alert>
</g:if>

<table class="table table-striped">
  <thead>
    <tr>

<g:sortableColumn property="name" title="${message(code: 'city.name.label', default: 'Name')}" />
      
      <th class="header"><g:message code="city.parent.label" default="Parent" /></th>
      
<th></th>
</tr>
</thead>
<tbody>
<g:each in="${cityInstanceList}" var="cityInstance">
  <tr>

  <td>${fieldValue(bean: cityInstance, field: "name")}</td>
      
  <td>${fieldValue(bean: cityInstance, field: "parent")}</td>
      
  <td class="link">
  <g:link action="show" id="${cityInstance.id}" class="btn btn-small">Show &raquo;</g:link>
  </td>
  </tr>
</g:each>
</tbody>
</table>
<div class="pagination">
  <bootstrap:paginate total="${cityInstanceTotal}" />
</div>



</body>
</html>
